import request from "@/utils/request";

//POST / api / proposal / list
export function advice_list(query) {
  //分页查询
  return request({
    url: "/api/proposal/list",
    method: "post",
    data: query
  });
}

//POST /api/proposal/updateTopStatus  批量置顶取消置顶
export function advice_updateTopStatus(query) {
  //批量置顶取消置顶
  return request({
    url: "/api/proposal/updateTopStatus",
    method: "post",
    data: query
  });
}
//POST / api / proposal / deleteAll 批量删除Proposal
export function advice_deleteAll(query) {
  //批量删除
  return request({
    url: "/api/proposal/deleteAll",
    method: "post",
    data: query
  });
}
//POST /api/proposal/delete  删除
export function advice_delete(query) {
  //删除
  return request({
    url: "/api/proposal/delete",
    method: "post",
    data: query
  });
}
///api/proposal/findById  详情
export function advice_findById(query) {
  //查看详情
  return request({
    url: "/api/proposal/findById",
    method: "post",
    data: query
  });
}
//POST / api / proposal / edit
export function advice_edit(query) {
  //打开关闭评论
  return request({
    url: "/api/proposal/edit",
    method: "post",
    data: query
  });
}
//POST /api/proposal/save
export function advice_save(query) {
  //打开关闭评论
  return request({
    url: "/api/proposal/save",
    method: "post",
    data: query
  });
}

export function advice_financeAudit(query) {
  return request({
    url: "/api/proposal/financeAudit",
    method: "post",
    data: query
  });
}
// /api/proposalComment/delete
export function advice_del(query) {
  return request({
    url: "/api/proposalComment/delete",
    method: "post",
    data: query
  });
}

// /api/proposal/exportExcel
export function advice_exportExcel(query) {
  return request({
    url: "/api/proposal/exportExcel",
    method: "post",
    data: query,
    reposeType: "blob"
  });
}
